package com.gepengjun.lims.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.gepengjun.lims.entity.Role;
import com.baomidou.mybatisplus.service.IService;
import com.gepengjun.lims.pojo.Node;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jun
 * @since 2018-08-19
 */
public interface RoleService extends IService<Role> {

    List<Role> findAllAvailableRole();

    List<Role> findRolesByUserId(Long userId);

    Page<Role> getRolePage(Page<Role> page,Role role);

    Boolean batchDisableUsers(List<Long> roleList);

    Boolean batchAbleRoles(List<Long> roleList);

    List<Node> gerRolePermissions(Long roleId);
}
